<app-head login="userIsLogin"></app-head>
<wx-share></wx-share>
<div class="start_container start_mt7 start_loading">

	<div class="start_detial_box">
		<div class="start_headimg">
			<img ng-src="{{res.teacher.pic}}">
		</div>
		<div class="start_name">
			{{res.teacher.name}}
		</div>
		<div class="start_description">
			{{res.teacher.school_name}}<br>
			{{res.teacher.academy}} {{res.teacher.description}}
		</div>
		<div class="start_good_and_bad start_detail_good_and_bad">
			<div class="start_num start_good_num">
				<button  ng-disabled="!goodDisable" ng-click="assent(res.teacher.good);">有气质 {{res.teacher.good}}</button>
				<div class="start_popup_num" ng-class="{false:'disable'}[good]" >+1</div>
			</div>
			<div class="start_num start_bad_num">
				<button ng-disabled="!badDisable" ng-click="bad(res.teacher.bad);" >呵呵 {{res.teacher.bad}}</button>
				<div class="start_popup_num" ng-class="{false:'disable'}[bad]" >+1</div>
			</div>
		</div>
	</div>

	<div class="start_detail_tips_box">
		<ul>
			<li ng-repeat="item in tags" ng-class="{true:'on',false:''}[item.is_click]" ng-click="addTags($event,item.id)">
				<input type="hidden" id="tag{{item.id}}" value="{{item.is_click}}">
				<span id="tagName{{item.id}}">{{item.content}} {{item.number}}</span>
			</li>
		</ul>

		<div class="start_detail_tips_input">
			<input type="text" placeholder="对老师的印象？最多10个字" ng-model="tagName">
			<button ng-click="addTags($event);" >添加</button>
		</div>
	</div>

	<div class="start_detail_comment_box">
		
		<h6 class="start_comment_title">评价（<span>{{count}}</span>）<!-- <small>其中9条内容尚未通过审核</small> --></h6>
		<ul>
			<li ng-repeat="item in comments">
				<div class="start_comment_headimg">
					<img ng-src="{{item.user_pic}}">
				</div>
				<div class="start_comment_box">
					<h6 class="start_comment_head"><span>{{item.user_name}}</span> 评价了 <a href="#/home/detail/{{res.teacher.id}}">{{res.teacher.name}}</a>·{{res.teacher.school_name}}</h6>
					<h6 class="start_comment_subhead">{{item.create_time}}</h6>
					<div class="start_comment_content" data-ng-bind-html="item.content"></div>
					<div class="start_comment_footer">
						<ul>
							<li class="good">
								<button ng-click="commentGood($event,item.id,item.good);" ng-disabled="!item.isGoodAble">有道理 {{item.good}}</button>
							</li>
							<li class="bad">
								<button ng-click="commentBad($event,item.id,item.bad);" ng-disabled="!item.isBadAble">我都懂 {{item.bad}}</button>
							</li>
						</ul>
					</div>
				</div>
			</li>

			<li>
				<div class="start_comment_headimg">
					<img ng-src="{{userpic}}">
				</div>
				<div class="start_comment_box">
					<h6 class="start_comment_head"><span>{{username}}</span></h6>
					<div class="start_comment_content">
						<textarea ng-model="postContent" row="10" column="10" ng-change="input()" placeholder="扒一扒老师的小爱好、口头禅与有趣的故事，或者你还知道更多..."></textarea>	
						<div class="start_comment_tips">
							请最少回复30个字，当前字数为<span ng-class="{true:'able'}[canPost]">0</span>字!
						</div>	
					</div>
					<div class="start_comment_footer">
						<button ng-disabled="!canPost" ng-class="{false:'disable'}[canPost]" ng-click="post()">添加评论</button>
					</div>
				</div>
			</li>

		</ul>

	</div>

</div>